import { dataQueryAxios } from '@/utils/request'

// 列表
export const getSettingAtlasList = (params: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/release-maps`,
    method: 'get',
    params
  })
}

// 发布
export const publishSettingAtlas = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/release-maps/${data.id}:publish`,
    method: 'post',
    data
  })
}

// 下线
export const offlineSettingAtlas = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/release-maps/${data.id}:offline`,
    method: 'post',
    data
  })
}
